package com.whu.pojo;


import java.sql.Timestamp;
import java.text.SimpleDateFormat;

public class Response {
	private int ltpl01;
	private String ltpl02;
	private String ltpl03;
	private String ltpl04;
	private int ltpl05;
	private int ltpl06;
	private Timestamp ltpl07;
	private int ltpl08;
	
	public int getLtpl01() {
		return ltpl01;
	}
	public void setLtpl01(int ltpl01) {
		this.ltpl01 = ltpl01;
	}
	public String getLtpl02() {
		return ltpl02;
	}
	public void setLtpl02(String ltpl02) {
		this.ltpl02 = ltpl02;
	}
	public String getLtpl03() {
		return ltpl03;
	}
	public void setLtpl03(String ltpl03) {
		this.ltpl03 = ltpl03;
	}
	public String getLtpl04() {
		return ltpl04;
	}
	public void setLtpl04(String ltpl04) {
		this.ltpl04 = ltpl04;
	}
	public int getLtpl05() {
		return ltpl05;
	}
	public void setLtpl05(int ltpl05) {
		this.ltpl05 =ltpl05;
	}
	public int getLtpl06() {
		return ltpl06;
	}
	public void setLtpl06(int ltpl06) {
		this.ltpl06 = ltpl06;
	}
	public String getLtpl07() {
		SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		return sdf.format(this.ltpl07);
	}
	public void setLtpl07(String ltpl07) {
			SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		
		try {
			if(ltpl07!=""&&ltpl07!= null) 
			{
				Timestamp timestamp =new java.sql.Timestamp(sdf.parse(ltpl07).getTime());
			this.ltpl07 =timestamp;
			}
			else
			{
				Timestamp timestamp =new Timestamp(System.currentTimeMillis());
				sdf.format(timestamp);
				System.out.println(timestamp);
				this.ltpl07 = timestamp;
			}
			System.out.println(ltpl07);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
	public int getLtpl08() {
		return ltpl08;
	}
	public void setLtpl08(int ltpl08) {
		this.ltpl08 = ltpl08;
	}
	
	@Override
	public String toString(){
		return  this.getLtpl02()+
				this.getLtpl03()+
				this.getLtpl04()+
				this.getLtpl07()+
				this.getLtpl08();
	}
	
	
}
